<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>

<script type="text/javascript" src="/ShoppingWebsite/js/jquery-3.2.1.min.js"></script>
<script type="text/javascript">

function a(){
	$.ajax({  
		url:"ArticleCarServlet",//servlet文件的名称
		type:"GET",
		success:function(e){
			alert("servlet调用成功！");
		}
	});
	
}

</script>
</head>
<body onload="a()">
<input type="text" name="userName" id="userName">
<span id="message">123</span>
</body>
</html>